<?php if (!isset($v_sval)) exit; ?>
<?php
$v_offset = (isset($_REQUEST["hdn_offset"])) ? $_REQUEST["hdn_offset"] : 0;
$v_num_row = (isset($_REQUEST["hdn_num_row"])) ? $_REQUEST["hdn_num_row"] : SYS_ITEMS_PER_PAGE;
$v_account_id = (isset($_REQUEST["txt_account_id"])) ? $_REQUEST["txt_account_id"] : 0;
$v_map_type = (isset($_REQUEST["txt_map_type"])) ? $_REQUEST["txt_map_type"] : 0;
$v_map_lat = (isset($_REQUEST["txt_map_lat"])) ? $_REQUEST["txt_map_lat"] : 0;
$v_map_long = (isset($_REQUEST["txt_map_long"])) ? $_REQUEST["txt_map_long"] : 0;
$v_map_title = (isset($_REQUEST["txt_map_title"])) ? $_REQUEST["txt_map_title"] : 0;
		
$v_where_clause = "";
$rs_all_map = getAllMap($v_where_clause,$v_offset ,$v_num_row);
$v_dsp_map_list = '<div>
							<div class="element_title">
								<div class="f_left label_60" align="center">'._LB_ORDER.'</div>
								<div class="f_left label_240">'._LB_NAME.'</div>
								<div class="f_left label_60" align="center">#</div>
							</div>
						<div class="clear height_3"></div>';
    $v_inc = 1;
while ( $arr_map = mysql_fetch_array($rs_all_map,MYSQL_NUM)){
	$v_account_id=$arr_map["0"];
	$v_map_type=$arr_map["1"];
	$v_map_lat=$arr_map["2"];
	$v_map_long=$arr_map["3"];
	$v_map_title=$arr_map["4"];
	
	$v_dsp_map_list .='
	<div class="element">
		<div class="contain_map" id="contain_map_'.$v_map_id.'">
				<div class="f_left label_60" align="center">'.$v_inc.'.</div>
			<div class="f_left label_240">
						<a href="javascript:void(0)" onclick="load_map_detail(\''.$v_map_id.'\')">'.$v_account_id.'</a>                 
			</div>
			<div class="f_left label_60" align="center">
					<a onclick=\'if(!confirm("Chac chan chua")){return false;}\' href="?a=ACC&acc=MAP&map=MAP&map=D&hdn_account_id='.$v_account_id.'">
						'._IMG_DELETE.'</a>
			</div>
			<div class="clear height_3"></div>
		</div>
    </div>';	
        $v_inc++;

}
$v_dsp_map_list .='</div>';		
$v_number_of_all_result = countAll($v_where_clause,'TB_MAP');
?>
